package cn.livingCloud.repository;

import cn.livingCloud.dto.EmployeeAccountListDto;
import cn.livingCloud.entity.core.EmployeeAccount;
import cn.livingCloud.entity.user.UserAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeAccountMapper {
    List<EmployeeAccount> getList(EmployeeAccountListDto listDto);

    EmployeeAccount selectByPrimaryKey(String uuid);

    EmployeeAccount findAccountByUserNamePassword(@Param("username") String username
            , @Param("password") String password);

    void updateLastLoginTime(EmployeeAccount employeeAccount);

    void insert(EmployeeAccount account);

    List<UserAccount> findAccountListByEmployee(String uuid);
}